﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kristall;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework;

namespace Kristall.Screens
{
    public class BackgroundScreen : GameScreen
    {
        Texture2D background;

        public override void LoadContent()
        {
            ContentManager content = new ContentManager(ScreenManager.Game.Services);
            content.RootDirectory = "Content";

            background = content.Load<Texture2D>(@"Backgrounds\Menu");
        }

        public override void Update(GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)
        {
            //base.Update(gameTime, otherScreenHasFocus, coveredByOtherScreen);
        }

        public override void Draw(GameTime gameTime)
        {
            SpriteBatch batch = ScreenManager.SpriteBatch;
            Rectangle backgroundRectangle = new Rectangle(0, 0, (int)Kristall.Viewport.X, (int)Kristall.Viewport.Y);

            batch.Begin();
            batch.Draw(background, backgroundRectangle, Color.White * 0.66f);
            batch.End();
        }
    }
}
